﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;

// NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService" in both code and config file together.
[ServiceContract(CallbackContract = typeof(IClient))]
public interface IService
{
    [OperationContract(IsOneWay = true)]
    void AddNewClient(string nickname);

    [OperationContract(IsOneWay = true)]
    void SendMessageToService(string message, string nickname);

    [OperationContract(IsOneWay = true)]
    void DisconnectFromServer(string nickname);
}

public interface IClient
{
    [OperationContract(IsOneWay = true)]
    void SendMessageToClient(string message);

    [OperationContract(IsOneWay = true)]
    void UpdateContacts(string nickname);
}
